package org.eenie.kdassistant.net.kdy_api;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Eenie on 2017/8/11.
 * Email: eeniework@gmail.com
 * Des:
 */

public interface KdyService {


//    version: 5.7.1
//    appVersion: 5710
//    pname: androids
//    Cookie: session_id=96c9e144a324ddf092d4e7701f4a760f


    @Headers({"version: 5.7.1", "appVersion: 5710", "pname: androids"})
    @POST("api.php")
    Observable<ResponseBody> ReqData(@Header("Cookie") String session, @Body RequestBody paramRequestBody);

    @Headers({"version: 5.7.1", "appVersion: 5710", "pname: androids"})
    @POST("http://api.kuaidihelp.com/v1/Wduser/login")
    Observable<ResponseBody> login(@Header("Cookie") String session, @Body RequestBody paramRequestBody);


}
